package com.callback4;

public class TestDemo implements Inteface {
	Person person;

	public static void main(String[] args) {
		
		TestDemo tt = new TestDemo();
		tt.ss();
		System.out.println(tt.person.getState());

	}

	void ss() {
		person = new Person(TestDemo.this);
		person.on1("sleeping");
		person.on2("eating");
		person.on3(true);
	}
    @ Override
	public void onSleeping(String ss) {
		System.out.println(ss);

	}
    @Override
	public void onEating(String ss) {
		System.out.println(ss);
	}
    @Override
	public int onState() {
		return 111;
	}

	@Override
	public void onWalking(boolean isWalking) {
		System.out.println(isWalking);
	}

}
